package com.fosun.spr.core.base.model;


public abstract class CoBaseSpListModel extends CoBaseSpModel {
 
	private static final Integer maxSize = 50;
	private Integer offset = new Integer(0);
	private Integer size = maxSize;

	public Integer getOffset() {
		return offset;
	}

	public void setOffset(Integer offset) {
		if(offset!=null && offset.intValue()<=0){
			offset = new Integer(0);
		}
		this.offset = offset;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		if (size != null && size.intValue() > maxSize.intValue()) {
			size = maxSize;
		}
		this.size = size;
	}

}
